ASSEMBLY_NAME = Hal
ASSEMBLY = $(ASSEMBLY_NAME).dll

SOURCES = 					\
	$(srcdir)/AccessControl.cs		\
	$(srcdir)/ILaptopPanel.cs		\
	$(srcdir)/LaptopPanel.cs		\
	$(srcdir)/Context.cs			\
	$(srcdir)/ILightSensor.cs		\
	$(srcdir)/LightSensor.cs		\
	$(srcdir)/CPUFreq.cs			\
	$(srcdir)/IManager.cs			\
	$(srcdir)/Manager.cs			\
	$(srcdir)/Device.cs			\
	$(srcdir)/IStorage.cs			\
	$(srcdir)/PropertyModification.cs	\
	$(srcdir)/IAccessControl.cs		\
	$(srcdir)/ISystemPowerManagement.cs	\
	$(srcdir)/Storage.cs			\
	$(srcdir)/ICPUFreq.cs			\
	$(srcdir)/IVolumeCrypto.cs		\
	$(srcdir)/SystemPowerManagement.cs	\
	$(srcdir)/IDevice.cs			\
	$(srcdir)/IVolume.cs			\
	$(srcdir)/VolumeCrypto.cs		\
	$(srcdir)/IKillSwitch.cs		\
	$(srcdir)/KillSwitch.cs			\
	$(srcdir)/Volume.cs

LIBS =						\
	$(NDESK_DBUS_LIBS)

all: $(ASSEMBLY)

$(ASSEMBLY): $(SOURCES)
	$(MCS) -debug -target:library -out:$@ $(SOURCES) $(LIBS)

GACUTIL_ARGS = -package $(PACKAGE) -root $(DESTDIR)$(libdir) -gacdir $(libdir)

install-data-local: $(ASSEMBLY)
	$(mkinstalldirs) $(DESTDIR)$(pkglibdir)
	$(INSTALL_DATA) $(ASSEMBLY) $(ASSEMBLY).mdb $(DESTDIR)$(pkglibdir)

uninstall-local:
	rm -f $(DESTDIR)$(pkglibdir)/$(ASSEMBLY) $(DESTDIR)$(pkglibdir)/$(ASSEMBLY).mdb

EXTRA_DIST = $(SOURCES)

CLEANFILES = *.dll *.mdb

DISTCLEANFILES = *.pidb

MAINTAINERCLEANFILES = Makefile.in